﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling;
using System.IO;

namespace SharedLib.WinFormMVCFramework.ExceptionHandling
{
    public class SimpleExceptionFormatter : TextExceptionFormatter
    {
        public SimpleExceptionFormatter(TextWriter writer, Exception exception, Guid handlingInstanceId)
            : base(writer, exception, handlingInstanceId)
        {
        }

        public override void Format()
        {
            Writer.WriteLine(Exception.Message);
            //Writer.WriteLine("Exception Handling Instance ID: " + this.HandlingInstanceId);
        }
    }

}
